import { defineStore } from 'pinia';
import pinia from '@/store';

const useConfigsStoreHook = defineStore({
	id: 'Configs', // 模块中使用的ID
	state: (): any => ({}),
	getters: {},
	actions: {},
	persist: {
		// 开启本地存储
		key: 'Configs',
		storage: localStorage
	}
});

export function useConfigsStore() {
	return useConfigsStoreHook(pinia);
}
